package com.example.practice2023.mapper;

import com.example.practice2023.pojo.Shop;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName: ShopMapper
 * Package: com.example.practice2023.mapper
 * Description:
 *
 * @Author hyx
 * @Create 2023/7/4 1:30
 * @Version 1.0
 */
public interface ShopMapper {
    Shop selectShopByName( @Param("shopName") String shopName);
    List<Shop> select();
//ying
Shop selectById(Integer id);
    void insertShop(Shop shop);
    void deleteById(Integer shopId);
    void updateById(Shop shop);
    List<Shop> selectByPage(@Param("index") int index, @Param("limit") int limit,
                            @Param("shopName") String shopName,
                            @Param("shopStatus") Integer shopStatus);

    int selectAllCount(@Param("shopName") String shopName,
                       @Param("shopStatus") Integer shopStatus);

}
